<h2 aling="center" class="ourCompany-hdr" ><%=  t('event.new')%>
<% form_tag :controller => "events", :action => "new",:html => {:id => 'main_input' }, :method => "get" do -%>
  </h2><p align="left"><%= image_submit_tag("/images/add_event.png", :title => "New Event", :border=>0) %></p><h2 class="ourCompany-hdr"><%=  t('event.type')%> : <select id="category_type" name="category_type"><option value="1">VS</option><option value="2">Competition</option></select>
  
<%  end -%></h2>
<br/>
<br/>
<br/>
<br/>
<%= link_to   t('event.generate'), :controller => :xml,:action => :generarxml %>

<br/>
<%= link_to   t('event.generateShow'), :controller => :xml,:action => :generarymostrarxml %>

<table width="200" align="center" border="0" cellspacing="2" cellpadding="2">

	    <tr>
              <th nowrap="nowrap" scope="col"></th>
	      <th nowrap="nowrap" scope="col"><%=  t('event.name')%></th>
	      <th nowrap="nowrap" scope="col"><%=  t('event.categ')%></th>
	      <th nowrap="nowrap" scope="col"><%=  t('event.admin')%></th>
        </tr>
	    <tr>
              <% @events.each do |event| %>
              <td scope="col"><img src="/images/events.png" width="32" height="32" /></td>
	      <td nowrap="nowrap" scope="col"><%=h event.eventName %></td>
	      <td nowrap="nowrap" scope="col"><%=h event.categoryName %></td>
	      <td nowrap="nowrap" scope="col"><%=h event.administratorName %></td>
              <td><%= link_to image_tag("/images/eye.png", :title =>   t('event.show'), :border=>0), event %></td>
              <td><%= link_to image_tag("/images/edit_event.png", :title => t('event.edit'), :border=>0), edit_event_path(event) %></td>
                <td><td><%= link_to 'Destroy', event, :confirm => 'Are you sure? All association will be deleted', :method => :delete %></td></td>
        </tr>
        <% end %>
      </table>